package com.dhnsoft.dao;

import com.dhnsoft.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface UserDao {
    @Select("select * from user")
    List<User> getUserList();
    @Select("select * from user where id=#{id}")
    User getUserById(@Param("id") Integer id);
    @Insert("insert into user (id,name,pwd) values(#{id},#{name},#{password})")
    int insertUser(User user);

}